﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="CommandCall.cs" company="">
//   
// </copyright>
// <summary>
//   The command call.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace Libium.UseCases
{
    /// <summary>
    ///   The command call.
    /// </summary>
    public class CommandCall
    {
        #region Constructors and Destructors

        /// <summary>
        /// Initializes a new instance of the <see cref="CommandCall"/> class.
        /// </summary>
        /// <param name="command">
        /// The command. 
        /// </param>
        /// <param name="phase">
        /// The phase. 
        /// </param>
        public CommandCall(ICommand command, CommandHandlePhase phase)
        {
            Command = command;
            Phase = phase;
            Handled = false;
        }

        #endregion

        #region Public Properties

        /// <summary>
        ///   Gets the command.
        /// </summary>
        public ICommand Command { get; private set; }

        /// <summary>
        ///   Gets or sets a value indicating whether handled.
        /// </summary>
        public bool Handled { get; set; }

        /// <summary>
        ///   Gets the phase.
        /// </summary>
        public CommandHandlePhase Phase { get; private set; }

        #endregion
    }
}